package com.victualler.business.inventory.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.victualler.core.base.dao.BaseDetailDao;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author Guoshichang
 * @since 15:58 on 2018/10/5.
 * @Function 商品型号库存表
 */
@Entity
@Table(name="inventory_item")
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" })
public class InventoryItemDao extends BaseDetailDao implements Serializable {
    /**厂商id*/
    private Long venderId;
    /**商品id*/
    private Long goodsId;
    /**商品型号id*/
    private Long goodsModelId;
    /**变更数量*/
    private BigDecimal quantity;


    public Long getVenderId() {
        return venderId;
    }

    public void setVenderId(Long venderId) {
        this.venderId = venderId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsModelId() {
        return goodsModelId;
    }

    public void setGoodsModelId(Long goodsModelId) {
        this.goodsModelId = goodsModelId;
    }

    public BigDecimal getQuantity() {
        return quantity;
    }

    public void setQuantity(BigDecimal quantity) {
        this.quantity = quantity;
    }
}
